package com.lxj.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lxj.domain.ProdPropValue;
import com.lxj.mapper.ProdPropValueMapper;
import com.lxj.service.ProdPropValueService;
/**
 * @author lxj
 * @date 2021/8/1 11:11
 * @Description: 
 */
@Service
@Slf4j
public class ProdPropValueServiceImpl extends ServiceImpl<ProdPropValueMapper, ProdPropValue> implements ProdPropValueService{

    @Autowired
    private ProdPropValueMapper prodPropValueMapper;

    /**
     * 根据属性的id查询属性值集合
     *
     * @param id
     * @return
     */
    @Override
    public List<ProdPropValue> findPropValuesByPropId(Long id) {
        return prodPropValueMapper.selectList(new LambdaQueryWrapper<ProdPropValue>()
                .eq(ProdPropValue::getPropId,id)
        );
    }


}
